package engine.planets;

/**
 * @author Rumata
 */
public class EarthTypePlanet extends Planet {
	private int climate;
	private double ratioOfLandAndWater;
	private int resourceWealth;
	private int size;
	private String name;
	private int orbit;
	private int atmosphere;
	private int radioactivity;
	private double gravity;
	private double pollution;

	/**
	 * @param orbit
	 * @param spectralClassOfMotherStar
	 */
	public EarthTypePlanet(int orbit, int spectralClassOfMotherStar) {
		climate = PlanetGenerator.generateClimate(orbit, spectralClassOfMotherStar);
		setSize(PlanetGenerator.generateSize());
		atmosphere = PlanetGenerator.generateAtmosphere(climate);
		ratioOfLandAndWater = PlanetGenerator.generateRatioOfLandAndWater(climate, atmosphere);
		gravity = PlanetGenerator.generateGravity();
		resourceWealth = PlanetGenerator.generateResourceWealth();
		radioactivity = PlanetGenerator.generateRadioactivity();
	}

	// Методы доступа к защищенным переменным
	/**
	 * @return the climate
	 */
	public int getClimate() {
		return climate;
	}

	/**
	 * @param climate the climate to set
	 */
	public void setClimate(int climate) {
		this.climate = climate;
	}

	/**
	 * @return
	 * @return the ratioOfLandAndWater
	 */
	public double getRatioOfLandAndWater() {
		return ratioOfLandAndWater;
	}

	/**
	 * @param ratioOfLandAndWater the ratioOfLandAndWater to set
	 */
	public void setRatioOfLandAndWater(double ratioOfLandAndWater) {
		this.ratioOfLandAndWater = ratioOfLandAndWater;
	}

	/**
	 * @return the resourceWealth
	 */
	public int getResourceWealth() {
		return resourceWealth;
	}

	/**
	 * @param resourceWealth the resourceWealth to set
	 */
	public void setResourceWealth(int resourceWealth) {
		this.resourceWealth = resourceWealth;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int getOrbit() {
		return orbit;
	}

	@Override
	public void setOrbit(int orbit) {
		this.orbit = orbit;
	}

	@Override
	public int getAtmosphere() {
		return atmosphere;
	}

	@Override
	public void setAtmosphere(int atmosphere) {
		this.atmosphere = atmosphere;

	}

	@Override
	public int getRadioactivity() {
		return radioactivity;
	}

	@Override
	public void setRadioactivity(int radioactivity) {
		this.radioactivity = radioactivity;

	}

	@Override
	public double getGravity() {
		return gravity;
	}

	@Override
	public void setGravity(double gravity) {
		this.gravity = gravity;

	}

	/**
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	/**
	 * @param size the size to set
	 */
	public void setSize(int size) {
		this.size = size;
	}

	/**
	 * @return the pollution
	 */
	public double getPollution() {
		return pollution;
	}

	/**
	 * @param pollution the pollution to set
	 */
	public void setPollution(double pollution) {
		this.pollution = pollution;
	}

}
